<template>
  <div id="app">
    <router-view />
    <Return></Return>
    <Footer
      v-if="
        $route.path == '/' ||
        $route.path.match('/home') ||
        $route.path == '/video' ||
        $route.path == '/minivideo'
      "
    ></Footer>
  </div>
</template>
<script>
//引入Footer的组件
import Footer from "./components/Footer";
import Return from "./components/Return.vue"
export default {
  name: "App",
  components: {
    Footer,
    Return
  },
  mounted() {
    console.log(this.$route.path);
  },
};
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
* {
  padding: 0;
  margin: 0;
  list-style: none;
}
</style>
